.PHONY:all
all:server client

LDFLAG=-DSELF=1

server:ServerMain.cpp
	g++ -o $@ $^ $(LDFLAG) -std=c++14 -lpthread -ljsoncpp
client:ClientMain.cpp
	g++ -o $@ $^ $(LDFLAG) -std=c++14 -lpthread -ljsoncpp

.PHONY:clean
clean:
	rm -rf server client